package com.changfen.handler;

import com.changfen.event.Event;
import com.changfen.enums.EventTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author changfeng.chen@things-matrix.com
 * @date 2022/8/27 11:24
 **/
@Slf4j
@Component
public class NotifyEventHandler extends AbstractEventHandler{
    @Override
    protected EventTypeEnum getEventType() {
        return EventTypeEnum.notify;
    }

    @Override
    protected void invoke(Event event) {
        log.info("NotifyEventHandler execute event = {}", event);
    }
}
